//
//  SRInfoSettingView.m
//  SportRing
//
//  Created by mykoma on 14-4-21.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRSettingGenderView.h"

@interface SRSettingGenderView ()

@property (nonatomic, weak) IBOutlet UIButton * femaleBtn;
@property (nonatomic, weak) IBOutlet UIButton * maleBtn;

@end

@implementation SRSettingGenderView

-(void)awakeFromNib
{
    [super awakeFromNib];
    @weakify(self);
    [[self.femaleBtn rac_signalForControlEvents:UIControlEventTouchUpInside]
     subscribeNext:^(id x) {
         [self_weak_.delegate didSelectGender:SRGenderFemale];
     }];
    
    [[self.maleBtn rac_signalForControlEvents:UIControlEventTouchUpInside]
     subscribeNext:^(id x) {
         [self_weak_.delegate didSelectGender:SRGenderMale];
     }];
}

@end
